//Class和Member的实训
//Class and Member training

// NOLINTBEGIN

#include <iostream>
using namespace std;
class Max_Value {
 public:
  void setData();  //method   membership Function
  void getMaxValue();
  void display();

 private:
  int array_value[10];  //data membership
  int maxvalue;
};
void Max_Value::setData() {
  for (int i = 0; i < 10; i++) {
    cin >> array_value[i];
  }
}
void Max_Value::getMaxValue() {
  int maxx = array_value[0];
  for (int i = 1; i < 10; i++) {
    if (array_value[i] > maxx) {
      maxx = array_value[i];
    }
  }
  maxvalue = maxx;
}
void Max_Value::display() {
  cout << "MaxValue of  the arrayList=" << maxvalue << endl;
}
int main() {
  Max_Value mv;
  mv.setData();
  mv.getMaxValue();
  mv.display();
  //system("pause");
  return 0;
}

// NOLINTEND
